package com.cmsz.walle.deploy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cmsz.walle.deploy.entity.Deployment;
import com.cmsz.walle.deploy.repository.DeploymentRepo;

@Service
public class BasicService {
	
	@Autowired
	DeploymentRepo deploymentRepo;
	
	public boolean saveDeployment(Deployment dep)
	{
		Deployment d=deploymentRepo.save(dep);
		System.out.println(d.getId());
		return true;
	}
	
	public boolean deleteDeployment(Long id)
	{
		deploymentRepo.delete(id);
		return true;
	}

}
